package com.chucang.shucang.sms.feign;

import com.chucang.shucang.common.base.constant.SecurityConstant;
import com.chucang.shucang.common.base.utils.R;
import com.chucang.shucang.sms.feign.vo.UserBaseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/10/4 14:13
 * @description
 */
@FeignClient(contextId = "sms-user", value = "shucang-usr")
public interface UserService {

    @GetMapping("/usr/userbase/getUserBaseInfoById/{id}")
    R<UserBaseEntity> getUserBaseInfoById(@PathVariable("id") Long id, @RequestHeader(SecurityConstant.FROM) String from);
}
